package com.example.shop.shops.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_user
 */
@TableName(value = "t_user")
@Data
@Builder
public class User implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    private String username;

    /**
     *
     */
    private String phone;

    /**
     *
     */
    private String email;

    /**
     * 盐值
     */
    private String salt;

    /**
     * 密码，md5加密加盐
     */
    private String password;

    /**
     * 员工状态 - 1启用，0禁用
     */
    private Integer state;

    /**
     *
     */
    private Integer age;

    /**
     *
     */
    private Date createtime;

    /**
     *
     */
    private String headimg;

    /**
     *
     */
    private Long logininfoId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}